package work20241207_chap8.n_demo11;

/**
 * @author zdl
 * @date 2024/12/5
 */
public class Square extends Rect {
    @Override
    public double area() {
        return a * a;
    }

    @Override
    public double girth() {
        return 4 * a;
    }
}
